﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cart.aspx.cs" Inherits="Card.Web.Member.Cart" %>

<%@ Import Namespace="Card.Utility" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>会员中心_<%=SiteName %></title>
    <link href="../css/layout.css" type="text/css" rel="Stylesheet" />
    <link href="../css/member.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <uc1:Header ID="Header1" runat="server"></uc1:Header>
    <div class="content">
        <uc1:Menu ID="Menu1" runat="server"></uc1:Menu>
        <div class="right">
            <div class="top_info clear-fix">
                <h2>
                    购物车</h2>
            </div>
            <div style="margin-top: 20px;">
                <img style="float: right; border: 0px;" src="../Images/Ck-f-034.gif" />
                <asp:Repeater ID="rptList" runat="server">
                    <HeaderTemplate>
                        <table class="TB">
                            <tr class="TB_Header">
                                <td>
                                    编号
                                </td>
                                <td>
                                    名片
                                </td>
                                <td>
                                    名片简述
                                </td>
                                <td>
                                    价格(元)
                                </td>
                                <td>
                                    数量
                                </td>
                                <td>
                                    小计(元)
                                </td>
                                <td>
                                    删除商品
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="TB_Item">
                            <td align="center">
                                <%# Eval("ID") %>
                            </td>
                            <td align="center">
                                <a  href='OrderCard.aspx?cid=<%# Eval("ORDER_CARD_ID") %>'>
                                <img height="60" border='0' src='<%# ImageUtilty.GetOrderCardListImagePath(int.Parse(Eval("ORDER_CARD_ID").ToString()),int.Parse(Eval("USER_ID").ToString()),Eval("FRONT_IMAGE").ToString()) %>' /></a>
                            </td>
                            <td>
                                <a style="line-height: 30px; text-decoration: none; font-size: 14px;" href='OrderCard.aspx?cid=<%# Eval("ORDER_CARD_ID") %>'>
                                    <%# Eval("ORDER_CARD_NAME")%></a><br />
                                <p style="color: #999; line-height: 20px;">
                                    <%# Eval("CARD_SETTING_NAME")%>|<%# Eval("BOX_NUM")%>盒|<%# Eval("CORNER_NAME")%>|<%# bool.Parse(Eval("IS_ADJUST").ToString())?"有微调":"无微调"%></p>
                            </td>
                            <td align="center">
                                <%# Eval("TOTAL_MONEY")%>
                            </td>
                            <td align="center">
                                1
                            </td>
                            <td align="center">
                                <%# Eval("TOTAL_MONEY")%>
                            </td>
                            <td align="center">
                                <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="DELETE" CommandArgument='<%# Eval("ID") %>'
                                    Text="删除"></asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <tr class="TB_Bottom">
                            <td colspan="7" valign="middle" style="height: 37px;">
                                <span style="line-height: 37px;">商品总价（不含运费）：<asp:Literal ID="ltlTotalMoney" Text="0"
                                    runat="server"></asp:Literal>元</span> <a href="SubmitOrder.aspx" style="float: right">
                                        <img src="/images/Ck-f-040.gif" border="0" id="shopCart1_imgBalance" alt="结算"></a>
                            </td>
                        </tr>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
                <table class="TB" runat="server" visible="false" id="tbEmpty">
                    <tr class="TB_Bottom">
                        <td>
                            <span style="line-height: 37px;">你的购物车还是空的，赶快去设计名片下单吧:-D，<a style="font-size: 20px;
                                font-weight: bold; font-style: italic; color: Red;" href="/">GO!</a></span>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    </form>
</body>
</html>
